initialize({
    title: 'Swagger文档管理',
    init: function () {
       let swagger = action + '/swagger-ui.html';
       $('#swagger-frame').attr('src', swagger);
       setIframeHeight(document.getElementById('swagger-frame'));
    }
})

function setIframeHeight(iframe) {
    if (iframe) {
        var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
        if (iframeWin.document.body) {
            iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
        }
    }
};
    
 